package com.forlgb.powercloud.seata.common.rpc.fallback;


import com.forlgb.powercloud.seata.common.rpc.IFeignStorageClient;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author MrBird
 */
@Slf4j
@Component
public class IFeignStorageClientFallback implements FallbackFactory<IFeignStorageClient> {


    @Override
    public IFeignStorageClient create(Throwable throwable) {
        log.error("远程调用仓库服务失败~");
        return null;
    }
}